﻿@using mscook.mvc;
@{
    ViewBag.Title = "览月齐鲁";
    Layout = "~/Views/Shared/_CenterLayout.cshtml";
}

@model mscook.mvc.Models.CenterAlibuyModel
<div class="span9 main">
    <div class="row">
        <div class="span4 userinfo highlight">
            <div class="row">
                <div class="span1">
                    <a target="_blank" href="#">
                        <img src="@Url.Content("/Images/head.jpg")" alt="我的头像" class="avatar" />
                    </a>
                </div>
                <div class="span3">
                    <ul class="userinfo-list">
                        @{
                            var css = Model.LoginUser.IsVip ? "icon-vip" : "";
                            <li class="hello"><i class="@css"></i><span class="user_name">&nbsp;&nbsp;@Html.Encode(Model.LoginUser.LoginName + "您好")</span></li>
                        }
                        <li>
                            <i class="icon-map-marker"></i>
                            <a class="location" target="_blank" title="查看地图" href="#">济南</a>
                        </li>
                        <li>
                            <a class="weather" target="_blank" title="济南天气预报_一周天气预报_中国天气网" href="http://www.weather.com.cn/html/weather/101120101.shtml">12~3℃
        晴</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="span4 userinfo highlight">
            <ul class="userinfo-list">
                <li class="integral">
                    <i class="icon-leaf"></i>
                    积分：@Html.Encode(Model.LoginUser.Bonus + "点")
                    <a href="@Url.Action("Present")">兑换礼品</a>
                    <a id="GetVip" href="#">获取Vip 兑换积分</a>
                </li>
            </ul>
        </div>
        <div class="span8 business_card highlight">
            <div class="card_header">
                <span class="card_title">
                    <i class=" icon-barcode"></i>
                    <a target="_blank" href="#">提示信息 <i class="chevron-right">›</i></a>
                </span>
            </div>
            <div class="card_info">
                <ul>
                    @{
                        if (Model.BonusOrder != null)
                        {
                        <li>订单编号:@Html.Encode(Model.BonusOrder.OrederNumber)</li>
                        <li>充值积分:@Html.Encode(Model.BonusOrder.Bonus)</li>
                        <li>所需金额:@Html.Encode(Model.BonusOrder.Price)</li>
                        <li>充值账号:@Html.Encode(Model.BonusOrder.LoginUser.LoginName)</li>
                   
                            string message = string.Empty;
                            if (Model.BonusOrder.OrderStatus == mscook.core.enumType.BonusOrderStatus.交易成功)
                            {
                                message = "此订单充值已经成功！请您及时查收";
                            }
                            else
                            {
                                message = "此次充值失败，请您选择及时到账交易，如若选择担保交易，请联系我们退款或关闭交易";
                            }
                       
                        <li>温馨提醒:@Html.Encode(message)</li>
                        }
                        else
                        {
                            <li>温馨提醒：查询订单不存在</li>
                        }
                    }

                </ul>
            </div>
        </div>

    </div>
</div>
